//package com.lagou.rpc;
//
//import org.apache.curator.RetryPolicy;
//import org.apache.curator.framework.CuratorFramework;
//import org.apache.curator.framework.CuratorFrameworkFactory;
//import org.apache.curator.retry.ExponentialBackoffRetry;
//
//public class CuratorClient {
//
//    public static String PATH="/lg-rpc";
//
//    public static CuratorFramework getCuratorClient(){
//        RetryPolicy expontentialBlackoffRetry=new ExponentialBackoffRetry(1000,3);
//        CuratorFramework client=CuratorFrameworkFactory.builder().connectString("192.168.0.131:2181")
//                .sessionTimeoutMs(1000)
//                .connectionTimeoutMs(3000)
//                .retryPolicy(expontentialBlackoffRetry)
//                .namespace("base")
//                .build();
//        client.start();
//        return client;
//    }
//}
